--# TextTest
    
function setup()
    displayMode(FULLSCREEN)
    str1 = "hello\n"
    str2 = "hello world\n"
    backingMode(STANDARD)
    -- alert(str1)
    showKeyboard()
    
    
end

function draw()
    
    local w,h = textSize(str1..str2)
    text(str1..str2,100,HEIGHT/2)
    text("w,h="..w..","..h, WIDTH/2,HEIGHT/2)
    

end


function keyboard(key)
    print(key)
end

function touched(touch)
    --Show keyboard when the screen is touched
    showKeyboard()
end

function draw()
    background(40,40,50)
    fill(40, 223, 47, 255)
    textMode(CORNER)
    textWrapWidth(50)
    fontSize(20)
    buffer = keyboardBuffer()
    
    _,bufferHeight = textSize(buffer)
    
    if buffer then
        text( buffer, 10, HEIGHT - 30 - bufferHeight )
    end
end
